Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nikolas van Etten 202 posts 162 karma points
    Jan 30, 2009 @ 00:15
    Nikolas van Etten
    0

    [Solved] umbraco.library:GetMedia does not find media node

    Not sure if this is directly related to the XSLT, but I'm having issues retrieving data using the umbraco.library:GetMedia function even though I pass a valid id.

    The server returns:
    [code]No media is maching '5107'[/code]

    If I go to the media section, open the media and reloads the page it works!

    So I guess there might be some publishing issues?! Anyone experienced anything similar and know of a way to republish all media content?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jan 30, 2009 @ 00:43
    Dirk De Grave
    0

    Hi nikolas,

    umbraco version? Any path to reproduction?

    TIA,
    /Dirk

  • Nikolas van Etten 202 posts 162 karma points
    Jan 30, 2009 @ 08:48
    Nikolas van Etten
    0

    Hi Dirk,

    RC3 and the error can be seen at e.g. http://www.oceanshop.no/baatpleie/hempel-baatpleie/custom-marine-polish-0,5-l.aspx while it works on e.g. http://www.oceanshop.no/elektronikk-og-navigasjon/stereoradio-og-tvdvd/tv-19-lcd-mtekst-livin---nytt-design.aspx (and here I've only opened the media in Umbraco without saving it or similar).

    We're on an early design stage, so don't mind all the mess! ;)

  • Nikolas van Etten 202 posts 162 karma points
    Jan 31, 2009 @ 14:29
    Nikolas van Etten
    0

    Problem was that I used ZipUpload to upload media and it seems like it did not populate the XML cache which is used by the umbraco.library:GetMedia function. Noerd had already found a similar problem with his MultipleFileUpload package, so I just made a usercontrol looping through all media and generating the XML cache from it.

  • Darren 6 posts 20 karma points
    Feb 11, 2009 @ 09:28
    Darren
    0

    Any Chance you could share the code that does this??? i'm having the same problem

  • domagoj.barisic 2 posts 20 karma points
    Mar 10, 2009 @ 15:24
    domagoj.barisic
    0

    I've solve this by opening every item in umbraco - media and press "Save" button :)

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Mar 10, 2009 @ 15:50
    Ismail Mayat
    0

    domagoj.barisic,

    I got caught by this recently where i had uploaded images using zipload and it was driving me nuts I could see i had the item but still could not get it in xslt. Many thanks for this will know what to do next time.

    regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft